home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Misc / InstallerNG / developer / gui / example / igui_NameProceed.c < prev    next >
C/C++ Source or Header  |  1999-10-28  |  1KB  |  52 lines

  1.  
  2. #include "includes.h"
  3. #include "installergui_data.h"
  4.  
  5. /********************************************************************
  6.  *
  7.  *  DESCRIPTION
  8.  *
  9.  *  set the text of the "Proceed Installation" button to an other one.
  10.  *  this is called when the InstallerNG enters a SWING environment or
  11.  *  when the script sets the @proceed-button variable
  12.  *
  13.  *  IN:  application - pointer to the private application structure
  14.  *       text - the new text for the button
  15.  *  OUT: -
  16.  *
  17.  */
  18.  
  19. /********************************************************************
  20.  *
  21.  *  STATIC
  22.  *
  23.  */
  24.  
  25. /********************************************************************
  26.  *
  27.  *  EXTERN
  28.  *
  29.  */
  30.  
  31. /********************************************************************
  32.  *
  33.  *  PUBLIC
  34.  *
  35.  */
  36.  
  37. /********************************************************************
  38.  *
  39.  *  CODE
  40.  *
  41.  */
  42.  
  43. void __asm igui_NameProceed(register __a0 APTR application, register __a1 char *text)
  44. {
  45.   #ifdef DEBUG
  46.   DEBUG_MAKRO
  47.   #endif
  48.  
  49.   // change the button text of the "Proceed" button
  50.   SetAttrs(((struct Application *) application)->app_ButtonProceed, MUIA_Text_Contents, text, TAG_DONE);
  51. }
  52.